package com.ferrlo.test;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.junit.Test;

import com.ferrlo.model.Project;
import com.ferrlo.service.IProjectManager;

public class testProjDetails extends SpringUtils{

	@Test
	public void testDetails(){
		
		IProjectManager projectManager = (IProjectManager) applicationContext.getBean("projectManager");
		String pid = "7e0080804cca71c2014cca7693860001";
		String dqQuery = "ProjectManager.findProjectByPid.query";
		Map<String, Object> paras = new HashMap<String, Object>();
		paras.put("id", pid);
		List<Project> projects = projectManager.findListByDynamicQuery(dqQuery, paras);
		System.out.println(projects);
		System.out.println(projects.size());
		
	}
	
	
}
